import request from '@/utils/request'

// 查询教学评价试卷列表
export function listAppraiseExam(query) {
  return request({
    url: '/edu/appraiseExam/list',
    method: 'get',
    params: query
  })
}

// 查询教学评价试卷详细
export function getAppraiseExam(examId) {
  return request({
    url: '/edu/appraiseExam/' + examId,
    method: 'get'
  })
}

// 新增教学评价试卷
export function addAppraiseExam(data) {
  return request({
    url: '/edu/appraiseExam',
    method: 'post',
    data: data
  })
}

// 修改教学评价试卷
export function updateAppraiseExam(data) {
  return request({
    url: '/edu/appraiseExam',
    method: 'put',
    data: data
  })
}

// 删除教学评价试卷
export function delAppraiseExam(examId) {
  return request({
    url: '/edu/appraiseExam/' + examId,
    method: 'delete'
  })
}

// 导出教学评价试卷
export function exportAppraiseExam(query) {
  return request({
    url: '/edu/appraiseExam/export',
    method: 'get',
    params: query
  })
}